package com.spzx.cart;

import com.spzx.common.anno.EnableUserWebMvcConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * Project: spzx-parent
 * Package: com.spzx.cart
 * Version: 1.0
 * <p>
 * Created by  wangjiaxin  on 2024/4/25 下午10:02
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class) // 排除数据库的自动化配置，Cart微服务不需要
@EnableFeignClients(basePackages = {"com.spzx.feign.product"})  //开启远程调用
@EnableUserWebMvcConfiguration  //用户登录拦截器
public class CartApplication {
    public static void main(String[] args) {
        SpringApplication.run(CartApplication.class, args);
    }
}
